﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MDSAdministration
{
    /// <summary>
    /// Interaction logic for ColumnCompare.xaml
    /// </summary>
    public partial class ColumnCompare : UserControl
    {
        public ColumnCompare()
        {
            InitializeComponent();
        }

        public IEnumerable ItemSource
        {
            get { return dataGrid1.ItemsSource; }
            set 
            {
                dataGrid1.ItemsSource = value;
            }
        }

        public string ColumnHeaderName
        {
            get { return lblColumnHeaderName.Content.ToString(); }
            set { lblColumnHeaderName.Content = value;
                dgtcCol1.Header = "ServerA";
                dgtcCol2.Header = "ServerB";
            }
        }

        public bool IsChecked
        {
            get
            {
                if (checkBox.IsChecked.HasValue)
                {
                    return checkBox.IsChecked.Value;
                }
                return false;
            }
            set { checkBox.IsChecked = value; }
        }

        public bool IsDomainEntity { get; set; }

        public Visibility VisibilityCheckBox
        {
            get { return checkBox.Visibility; }
            set { checkBox.Visibility = value; }
        }

        public MDSDataTypes DataType { get; set; }
    }
}
